
    function pull(){
        $("select").html("");//初始化
        parArr = {};
        parArr.userName = $.cookie("username");
        parArr.token = $.cookie("token");
        var params = JSON.stringify(parArr);
        //x学期
        $.ajax({
            url: "/informationentry/querySem",
            contentType: "application/json",
            async: false,
            datatype: "json",
            data: params,
            type: 'POST',
            success: function (result) {
                cookieNull(result.statusCode)
                if(result.statusCode=="2000"){
                    var data = result.data
                    for (i = 0; i < data.length; i++) {
                        $("select[name=semesterName]").append('<option  value="' + data[i].semesterNumber + '">' + data[i].semesterName + '</option>')
                    }
                }else{
                    var msg = result.message
                    Confirm(msg)
                }
            }

        });
        //学历信息
        $.ajax({
            url: "/informationentry/queryEducation",
            contentType: "application/json",
            async: false,
            datatype: "json",
            data: params,
            type: 'POST',
            success: function (result) {
                cookieNull(result.statusCode)
                if(result.statusCode=="2000"){
                    var data = result.data
                    for (i = 0; i < data.length; i++) {
                        $("select[name=educationNumber]").append('<option  value="' + data[i].educationNumber + '">' + data[i].academicName + '</option>')
                    }
                }else{
                    var msg = result.message
                    Confirm(msg)
                }

            }
        })
        //与紧急联系人关系
        $.ajax({
            url: "/informationentry/queryEgcrs",
            contentType: "application/json",
            async: false,
            datatype: "json",
            data: params,
            type: 'POST',
            success: function (result) {
                cookieNull(result.statusCode)
                if(result.statusCode=="2000"){
                    var data = result.data
                    for (i = 0; i < data.length; i++) {
                        $("select[name=emergencyContactRelationshipNumber]").append('<option  value="' + data[i].emergencyContactRelationshipNumber + '">' + data[i].emergencyContactRelationship + '</option>')
                    }
                }else{
                    var msg = result.message
                    Confirm(msg)
                }

            }
        })
        //入学类型
        $.ajax({
            url: "/informationentry/queryAdmType",
            contentType: "application/json",
            async: false,
            datatype: "json",
            data: params,
            type: 'POST',
            success: function (result) {
                cookieNull(result.statusCode)
                if(result.statusCode=="2000"){
                    var data = result.data
                    for (i = 0; i < data.length; i++) {
                        $("select[name=admissionNumber]").append('<option  value="' + data[i].admissionNumber + '">' + data[i].studentAdmissionType + '</option>')
                    }
                }else{
                    var msg = result.message
                    Confirm(msg)
                }

            }
        })
        //总费用
        $.ajax({
            url: "/informationentry/queryTui",
            contentType: "application/json",
            async: false,
            datatype: "json",
            data: params,
            type: 'POST',
            success: function (result) {
                cookieNull(result.statusCode)
                if(result.statusCode=="2000"){
                    var data = result.data
                    for (i = 0; i < data.length; i++) {
                        $("select[name=tuitionNumber]").append("<option value='" + data[i].tuitionInfNumber + "' data-name='" + data[i].tuitionAmount + "'>" + data[i].tuitionName + "</option>")
                    }
                }else{
                    var msg = result.message
                    Confirm(msg)
                }

            }
        })
        // //费用金额
        // $("select[name=tuitionNumber]").click(function () {
        //     $("input[name=tuitionAmount]").val($("select[name=tuitionNumber] option:selected").data("name"))
        // })
        //优惠信息
        $.ajax({
            url: "/informationentry/queryDisc",
            contentType: "application/json",
            async: false,
            datatype: "json",
            data: params,
            type: 'POST',
            success: function (result) {
                cookieNull(result.statusCode)
                if(result.statusCode=="2000"){
                    var data = result.data
                    for (i = 0; i < data.length; i++) {
                        $("select[name=discountInfNumber]").append('<option  value="' + data[i].discountInfNumber + '"data-name="' + data[i].discountAmount + '">' + data[i].discountInfName + '</option>')
                    }
                }else{
                    var msg = result.message
                    Confirm(msg)
                }

            }
        });
        // 优惠金额
        // $("select[name=discountInfNumber]").click(function () {
        //     $("input[name=discountAmount]").val($("select[name=discountInfNumber] option:selected").data("name"))
        // })
        //宿舍编号
        $.ajax({
            url: "/informationentry/queryDorm",
            contentType: "application/json",
            async: false,
            datatype: "json",
            data: params,
            type: 'POST',
            success: function (result) {
                cookieNull(result.statusCode)
                if(result.statusCode=="2000"){
                    var data = result.data;
                    data.push({"dormitoryNumber": "-1","remainingBed":"-"})
                    for (i = 0; i < data.length; i++) {
                        $("select[name=dormitoryNumber]").append('<option  value="' + data[i].dormitoryNumber + '"data-name="' + data[i].remainingBed + '">' + ((data[i].dormitoryNumber == "-1")?"不住宿":(data[i].dormitoryNumber)) + '</option>')//三元表达式
                    }
                }else{
                    var msg = result.message
                    Confirm(msg)
                }

            }
        });
        //剩余床位
        // $("select[name=dormitoryNumber]").click(function () {
        //     $("input[name=remainingBed]").val($("select[name=dormitoryNumber] option:selected").data("name"))
        // })



    }

